﻿<Window x:Class="Sobiens.Connectors.WPFControlsTest.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525"
        xmlns:sys="clr-namespace:System;assembly=mscorlib"
         xmlns:my="clr-namespace:Sobiens.Connectors.WPFControlsTest">
    <Grid>
        <my:FilterableHeader HorizontalAlignment="Left" Margin="199,0,0,0" x:Name="filterableHeader1" VerticalAlignment="Top" Width="292" >
        </my:FilterableHeader>
        <Expander Height="100" HorizontalAlignment="Stretch" Margin="36,98,0,0" Name="expander1" VerticalAlignment="Top">
            <Expander.Header>
                <Label Content="sdxxxxx" Background="Aqua" Width="{Binding
        RelativeSource={RelativeSource
          Mode=FindAncestor,
          AncestorType={x:Type Expander}},
        Path=ActualWidth}"></Label>
            </Expander.Header>
            <ContentControl>
                <Label Content="testsss"></Label>
            </ContentControl>
        </Expander>
    </Grid>
</Window>
